package com.process.data.mysql;

import com.process.data.dao.MemoryItemRepository;
import com.process.data.model.mysql.MySqlMemoryItemEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class MySqlController {
    @Autowired
    private MemoryItemRepository memoryItemRepository;


    @GetMapping("/testmemoryitem")
    public MySqlMemoryItemEntity TestA() {

        MySqlMemoryItemEntity entity = memoryItemRepository.findAll().get(1);
        return entity;
    }

}
